/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.jr2tecnologia.model;

import br.com.jr2tecnologia.model.entity.Login;
import br.com.jr2tecnologia.model.entity.SmsSend;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.ejb.Local;

/**
 *
 * @author ronildo
 */

@Local
public interface SmsSendPersistenceLocal {

    @PostConstruct
    void initialize();

    Login findWhoSentLast(String phone);

    SmsSend findByNowSmsId(String nowSmsId);

    List<SmsSend> list(SmsSend smsSend);

    List<SmsSend> list(String name, String phone);

    List<SmsSend> listAll();

    void persist(SmsSend smsSend);

    void remove(SmsSend smsSend);

    void update(SmsSend smsSend);

}
